<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/views1/DTD/views1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<p:dialog widgetVar="dlgMudarStatus" modal="true" width="250"
		closable="false" header="Alterar Situação do Aluno" minWidth="250"
		resizable="false">
		<h:form id="formMudarStatus" prependId="false">
			<div style="float: left; width: 230px;margin-top: 5px;">
				<h:outputLabel value="Nome: " />
			</div>
			<div style="float: left; width: 230px;">
	    		<p:inputText disabled="true" size="30" value="#{alunoBean.alunoInstance.nomeCompleto}"/>
			</div>
			<div style="float: left; width: 230px;margin-top: 5px;">
				<h:outputLabel value="Nova Situação: " />
			</div>
			<div style="float: left; width: 230px;">
	    		<h:selectOneMenu style="width: 220px;" value="#{alunoBean.alunoInstance.situacao}">
	    			<f:selectItems value="#{enumBean.situUsuario}"/>
	    		</h:selectOneMenu>
			</div>
			<div style="float: left; width: 230px;text-align: right;">
           		<br/><p:separator /><br/>  
                <p:commandButton action="#{alunoBean.mudarStatus}" value="Salvar" update="formPrincipal, formMudarStatus" oncomplete="dlgMudarStatus.hide()"/>
                <p:commandButton value="Cancelar" onclick="dlgMudarStatus.hide()" oncomplete="dlgMudarStatus.hide()"/>
            </div>
		</h:form>
	</p:dialog>
</f:view>